<?php

namespace Mcm\RepasBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Paiement
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Mcm\RepasBundle\Entity\PaiementRepository")
 */
class Paiement
{

     /**
   * @ORM\Id
   * @ORM\ManyToOne(targetEntity="Mcm\UserBundle\Entity\User")
   */
  private $invite;
 
  /**
   * @ORM\Id
   * @ORM\ManyToOne(targetEntity="Mcm\RepasBundle\Entity\Repas")
   */
  private $repas;

    /**
     * @var string
     *
     * @ORM\Column(name="coderepas", type="string", length=8)
     */
    private $coderepas;

    /**
     * @var string
     *
     * @ORM\Column(name="etat", type="string", length=20)
     */
    private $etat;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set coderepas
     *
     * @param string $coderepas
     * @return Paiement
     */
    public function setCoderepas($coderepas)
    {
        $this->coderepas = $coderepas;
    
        return $this;
    }

    /**
     * Get coderepas
     *
     * @return string 
     */
    public function getCoderepas()
    {
        return $this->coderepas;
    }

    /**
     * Set etat
     *
     * @param string $etat
     * @return Paiement
     */
    public function setEtat($etat)
    {
        $this->etat = $etat;
    
        return $this;
    }

    /**
     * Get etat
     *
     * @return string 
     */
    public function getEtat()
    {
        return $this->etat;
    }
    public function getInvite() {
        return $this->invite;
    }

    public function setInvite($invite) {
        $this->invite = $invite;
    }

    public function getRepas() {
        return $this->repas;
    }

    public function setRepas($repas) {
        $this->repas = $repas;
    }


}
